package TestWork;

public class Test01 {
    public static void main(String[] args) {
        IT a=new IT();
        a.setName("a");
        a.setAge(10);
        if(a.getAge()<15){
            System.out.println("15为龄年认默改修已!效无息信龄年");
            a.setAge(15);
        }
        a.setYear(10);
        a.work("软帝","员工");
    }
}
class IT{
    private String name;
    private int age;
    private final String jishu="java";
    private int year;
    private String location;
    private String zhiwu;

    public IT() {
    }

    public IT(String name, int age, int year) {
        this.name = name;
        this.age = age;
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getZhiwu() {
        return zhiwu;
    }

    public void setZhiwu(String zhiwu) {
        this.zhiwu = zhiwu;
    }

    public void work(String location,String zhiwu){
        this.location=location;
        this.zhiwu=zhiwu;
        System.out.println("姓名："+name+"\n"+"年龄为："+age+"\n"+"技术方向为："+jishu+"\n"+"工作年限为："+year+"\n"+"工作单位为："+location+"\n"+"职务为："+zhiwu);
    }
}